package com.softserve.crazymachine.response;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Mykhailo Tys
 * 
 */

public class Response {
	private int code;
	private String message;
	private String contentType;
	private int contentLength;
	private byte[] body;

	public Response() {
		code = 200;
		message = "OK";
		contentType = " ";
		contentLength = 0;
	}

	public void setData(byte[] data) {
		body = new byte[contentLength];
		body = data;
	}

	public void setCode(int c) {
		code = c;
	}

	public void setContentType(String type) {
		contentType = type;
	}

	public void setContentLength(int length) {
		contentLength = length;
	}

	public int getCode() {
		return code;
	}

	public byte[] getBody() {
		return body;
	}
}
